package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface AuthorityService {

	public Authority saveAuthority(Authority authority);

	public Set<Authority> loadAuthoritys();

	public Set<Authority> loadReferenceAuthoritys(Set<Authority> authoritys);

	public Set<Authority> loadAuthoritysByIdSet(Set<Integer> authoritysId);

	public Map<String, ?> loadAuthorityObjectReferencedSet(Authority authority);

	public Map<String, ?> loadAuthorityClassReferencedSet(Authority authority);

	public void deleteAuthority(Authority authority);

	public void deleteAuthoritys(Set<Integer> deleteAuthoritysId);

	public List<Authority> findAllAuthoritys(Integer startResult, Integer maxRows);

	public Authority findAuthorityByPrimaryKey(Integer id);

	public Integer countAuthoritys();

	public Integer countAuthoritys(CmiPagination page);

	public Integer countAuthoritysByName(String queryName);

	public Integer countAuthoritysByDetachedCriteria(CmiPagination page);

}
